/*************************************************************************
    > File Name: test.c
    > Author: ma6174
    > Mail: ma6174@163.com 
    > Created Time: Tue 04 Mar 2025 10:19:12 PM CST
 ************************************************************************/

#include<stdio.h>
#include<string.h>
#include<unistd.h>
#include<sys/types.h>
#include<sys/stat.h>
#include<fcntl.h>


int main()
{
	int fda = open("log.txt",O_WRONLY | O_CREAT | O_TRUNC,0666);
	printf("fda: %d\n",fda);
	
	int fdb = open("log.txt",O_WRONLY | O_CREAT | O_TRUNC,0666);
	printf("fdb: %d\n",fdb);
	
	int fdc = open("log.txt",O_WRONLY | O_CREAT | O_TRUNC,0666);
	printf("fdc: %d\n",fdc);
	
	int fdd = open("log.txt",O_WRONLY | O_CREAT | O_TRUNC,0666);
	printf("fdd: %d\n",fdd);
	
	return 0;
}
